home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gwu / monitor.h < prev    next >
C/C++ Source or Header  |  1996-01-30  |  1KB  |  43 lines

  1. #define MAX_TSKS 40
  2. #define MAX_BLKS 200
  3. #define MAX_LINES 2000
  4. #define MAX_DELAY 10
  5.  
  6. typedef void (*PROC_NM)();
  7.  
  8. typedef struct {
  9.     int x1, y1, x2, y2;
  10.     } COORD;
  11.  
  12. typedef struct {
  13.     int mon_win ;
  14.     int WON;
  15.     char *title;
  16.     } MON_REC, *MON_REC_PTR;
  17.  
  18. typedef struct {
  19.     FILE    *fd;
  20.     char     *FN;
  21.     char    *lines[MAX_LINES];
  22.     int    lines_in_file;
  23.     } FILE_REC, *FILE_REC_PTR;
  24.  
  25. typedef struct {
  26.           int ACTIVE ;     /* TRUE <==> MONITOR TASK ON  */
  27.           int DontDo ;     /* TRUE <==> Task Type        */
  28.       char *TN   ;  /* TASK NAME  */
  29.           int FL     ;  /* TASK FIRST LINE IN FILE */
  30.           int LL     ;     /* TASK LAST LINE IN FILE */
  31.           int CL     ;     /* TASK CURRENT LINE  */
  32.       int FLOS   ;  /* FIRST LINE ON SCREEN */
  33.       long Tot_Time; /* Total execution time (lines) for this task */
  34.       long Cur_Time; /* Execution time for this task since last report */
  35.           char ST    ;     /* TASK STATUS  */
  36.           int GRDIR  ;  /* IF TRUE GOES RIGHT */
  37.       MON_REC_PTR MON;  /* Monitor record on the screen */
  38.       FILE_REC_PTR FD;  /* File this task is located in */
  39.     } TASK_REC, *TASK_REC_PTR;
  40.  
  41. MON_REC_PTR CWK_CREATE_MON_WIN();
  42. FILE_REC_PTR CWK_LOAD_FILE();
  43.